pub use sea_orm_migration::prelude::*;

mod idents;

mod m000001_create_user_tables;
mod m000002_create_device_tables;
mod m000003_create_state_prop;
mod m000004_create_job_queue;
mod m000005_create_msg_queue_tracking;

pub struct Migrator;

#[async_trait::async_trait]
impl MigratorTrait for Migrator {
    fn migrations() -> Vec<Box<dyn MigrationTrait>> {
        vec![
            Box::new(m000001_create_user_tables::Migration),
            Box::new(m000002_create_device_tables::Migration),
            Box::new(m000003_create_state_prop::Migration),
            Box::new(m000004_create_job_queue::Migration),
            Box::new(m000005_create_msg_queue_tracking::Migration),
        ]
    }
}
